﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace doubly_linked_list
{
    class Item
    {
        public int wartosc; 

        public Item next; 

        public Item previous;

        public Item(int wartosc)
        {
            this.wartosc = wartosc;
        }

        public void displayLink()
        {
            Console.Write(wartosc + " ");
        }
    }
}
